package com.ibeifeng.crm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ibeifeng.crm.bean.User;
import com.ibeifeng.crm.dao.UserDao;
import com.ibeifeng.crm.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	@Resource
	UserDao userDao;
	/*@Resource
	LogMessage logMessage;*/
	@Override
	public boolean add(User user) {
		//logMessage.optionMessage("系统管理员", "添加", "user");
		return userDao.addUser(user);
	}

	@Override
	public boolean del(List<Integer> list) {
		return userDao.delUser(list);
	}

	@Override
	public boolean upd(User user) {
		return userDao.updUser(user);
	}

	@Override
	public List<User> query() {
		return userDao.queryUser();
	}

	@Override
	public int count() {
		return userDao.count();
	}

	@Override
	public List<User> queryLimit(int pg, int pgSize,String keyWord) {
		return userDao.queryLimit(pg, pgSize, keyWord);
	}
}
